package org.feiye.studyday23;

public class IntegerTest {
	public static void main(String[] args) {
		// 十进制转二进制
		String binaryString = Integer.toBinaryString(-8);
		System.out.println(binaryString);

		// 十进制转十六进制
		String hexString = Integer.toHexString(-10);
		System.out.println(hexString);

		// 十进制转八进制
		String octalString = Integer.toOctalString(-90);
		System.out.println(octalString);

		double f = -4.3;
		double floor = Math.floor(f);
		System.out.println(floor);
		double ceil = Math.ceil(f);
		System.out.println(ceil);
	}
}
